<?php
/*echo 'This is view of Paginator';
echo $this->currentUrl;*/

if ($this->last > 0)
{
	$linkStart = $this->currentUrl . '-' . $this->first;
	$strPage = '';
	foreach ( $this->pagesInRange as $key ) {
		if ($this->current == $key) {
			$strPage .= '<span class="active">' . $key . '</span>';
		} else {
			$linkPage = $this->currentUrl . '-' . $key . '.html';
			//$strPage .= '<a href="' . $linkPage . '">' . $key . '</a>';
			$strPage .= '<span class="link"><a href="' . $linkPage . '">' . $key . '</a></span> ';
		}
	}
?>
<br /><br />
<div id="paging">
	<div style="float: left;">
		<span class="page-text">Trang:</span> 
		<?php echo $strPage;?>
	</div>
	<div class="clr"></div>
</div>
<?php
}
else
{
	echo 'Không có dữ liệu...';
}